package com.jg.visitor.controller.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class SignInOutVo {
    @ApiModelProperty("操作类型 1签到 2签退")
    private Integer operationType = OperationEnum.SIGN_IN.getType();

    @ApiModelProperty("签到签退的密钥")
    private String key;

    @ApiModelProperty("大门")
    private String door = "";

    @ApiModelProperty("记录备注")
    private String remark = "";

    public enum OperationEnum{
        SIGN_IN(1),
        SIGN_OUT(2);

        public Integer type;

        OperationEnum(Integer type){
            this.type = type;
        }

        public Integer getType(){
            return this.type;
        }
    }
}
